#include <CommandPaste.h>
Inheritance diagram for CommandPaste:

Public Member Functions | |
| CommandPaste (osg::Vec3 pos, OSGWindows *osgwind) | |
| bool | execute () |
| bool | unexecute () |
Private Attributes | |
| OSGWindows * | osgwind_ |
| TrafficSign * | sign |
| TrafficLight * | light |
| Vehicle * | vehicle |
| EnvironmentObject * | envObj |
| vector< TraffEduObject * > | pastedObjs_ |
| vector< TraffEduObject * > | tmpObjs_ |
| char | whichVector |
|
||||||||||||
|
A constructor. Initializes osgwind_ and creates the pasted objects.
|
|
|
do the paste operation.
Implements Command. |
|
|
undo the paste operation.
Implements Command. |
|
|
a private variable. It is used to hold the created environmental object by using the pasted object information. |
|
|
a private variable. It is used to hold the created traffic light object by using the pasted object information. |
|
|
a private variable. It is initialized with the unique OSGWindows instance. |
|
|
a private vector of TraffEduObjects. It holds the pasted objects. |
|
|
a private variable. It is used to hold the created traffic sign object by using the pasted object information. |
|
|
a private vector of TraffEduObjects. It holds the copied or cut objects beforehand. |
|
|
a private variable. It is used to hold the created vehicle object by using the pasted object information. |
|
|
a private variable. It is used to show from which vector the pasted objects are coming(copied or cut). |
1.4.6-NO